/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Barang.java
 *
 * Created on 30 Nov 10, 10:58:09
 */
package view;

import controller.ControllerIjinPengeluaran;
import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import javax.swing.border.BevelBorder;
import utility.TableGenerator;

/**
 *
 * @author Mirza
 */
public class IjinPengeluaran extends javax.swing.JPanel {

    private int selectedIndex = 0;
    private boolean tambahIjinPengeluaran = false;
    private GradientPaint paint;
    private boolean pilihPegawai;

    /** Creates new form Barang */
    public IjinPengeluaran() {
        initComponents();
        refreshTabel();
        setActiveInput(false);
        setOpaque(false);
        setBorder(new BevelBorder(BevelBorder.LOWERED));
        if (ViewUtama.jabatan.equals("kepala gudang")) {
            jTextFieldStatus.setVisible(false);
            jLabel4.setVisible(false);
        } else if (ViewUtama.jabatan.equals("supervisor")) {
            jButtonTambah.setEnabled(false);
            jButtonHapus.setEnabled(false);
            jButton_pilhNoIjin.setEnabled(false);
            jTextFieldIsiPermohonan.setEditable(false);
            jTextFieldPemohon.setEditable(false);
            jTextFieldTanggalPermintaanIjin.setEditable(false);
        }
    }

    @Override
    protected void paintComponent(Graphics g) {
        Graphics2D gd = (Graphics2D) g.create();
        paint = new GradientPaint(getWidth(), 0, Color.BLUE, 0, 0, Color.WHITE);
        gd.setPaint(paint);
        gd.fillRect(0, 0, getWidth(), getHeight());
        gd.dispose();
        super.paintComponent(g);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTableIjinPengeluaran = new javax.swing.JTable();
        jTextFieldPencarian = new javax.swing.JTextField();
        jComboBoxJenisPencarian = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jTextFieldTanggalPermintaanIjin = new javax.swing.JTextField();
        jTextFieldPemohon = new javax.swing.JTextField();
        jTextFieldIsiPermohonan = new javax.swing.JTextField();
        jButtonBatal = new javax.swing.JButton();
        jButtonSimpan = new javax.swing.JButton();
        jButtonHapus = new javax.swing.JButton();
        jButtonUbah = new javax.swing.JButton();
        jButtonTambah = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();
        jTextFieldStatus = new javax.swing.JTextField();
        jButton_pilhNoIjin = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();

        addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                formFocusGained(evt);
            }
        });

        jTableIjinPengeluaran.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null},
                {null, null, null, null, null, null}
            },
            new String [] {
                "NO IJIN PENGELUARAN", "TANGGAL PERMINTAAN IJIN", "NIP", "PEMOHON", "ISI PERMOHONAN", "STATUS"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableIjinPengeluaran.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableIjinPengeluaranMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jTableIjinPengeluaran);
        jTableIjinPengeluaran.getColumnModel().getColumn(0).setPreferredWidth(40);
        jTableIjinPengeluaran.getColumnModel().getColumn(1).setPreferredWidth(10);
        jTableIjinPengeluaran.getColumnModel().getColumn(2).setPreferredWidth(20);

        jTextFieldPencarian.setText("search");
        jTextFieldPencarian.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldPencarianActionPerformed(evt);
            }
        });
        jTextFieldPencarian.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextFieldPencarianFocusGained(evt);
            }
        });

        jComboBoxJenisPencarian.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tanggal Permintaan Ijin", "Nip", "Pemohon", "Isi Permohonan", "Status" }));

        jLabel1.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel1.setText("Tanggal permintaan Ijin");

        jLabel2.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel2.setText("Pemohon");

        jLabel3.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel3.setText("Isi Permohonan");

        jTextFieldTanggalPermintaanIjin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldTanggalPermintaanIjinActionPerformed(evt);
            }
        });

        jTextFieldPemohon.setEditable(false);
        jTextFieldPemohon.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldPemohonActionPerformed(evt);
            }
        });
        jTextFieldPemohon.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jTextFieldPemohonFocusGained(evt);
            }
        });

        jButtonBatal.setText("Batal");
        jButtonBatal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonBatalActionPerformed(evt);
            }
        });

        jButtonSimpan.setText("Simpan");
        jButtonSimpan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSimpanActionPerformed(evt);
            }
        });

        jButtonHapus.setText("Hapus");
        jButtonHapus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonHapusActionPerformed(evt);
            }
        });

        jButtonUbah.setText("Ubah");
        jButtonUbah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonUbahActionPerformed(evt);
            }
        });

        jButtonTambah.setText("Tambah");
        jButtonTambah.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonTambahActionPerformed(evt);
            }
        });

        jLabel4.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel4.setText("Status");

        jButton_pilhNoIjin.setText("Pilih");
        jButton_pilhNoIjin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton_pilhNoIjinActionPerformed(evt);
            }
        });

        jLabel5.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel5.setText("(dd/mm/yyyy)");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jButtonTambah)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonUbah, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonHapus, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 803, Short.MAX_VALUE)
                        .addComponent(jButton_pilhNoIjin, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addComponent(jLabel3)
                            .addComponent(jLabel2)
                            .addComponent(jLabel4))
                        .addGap(37, 37, 37)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jTextFieldTanggalPermintaanIjin, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabel5))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jTextFieldPemohon, javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jTextFieldStatus)
                                        .addComponent(jTextFieldIsiPermohonan, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                            .addComponent(jButtonSimpan, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jButtonBatal, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)))))))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1102, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jComboBoxJenisPencarian, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldPencarian, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxJenisPencarian, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldPencarian, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonHapus)
                    .addComponent(jButtonUbah)
                    .addComponent(jButtonTambah)
                    .addComponent(jButton_pilhNoIjin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldTanggalPermintaanIjin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPemohon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldIsiPermohonan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3)))
                    .addComponent(jLabel1))
                .addGap(7, 7, 7)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel4)
                    .addComponent(jTextFieldStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSimpan)
                    .addComponent(jButtonBatal))
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void refreshTabel() {
        try {
            String[] listField = {"NO_IJIN_PENGELUARAN_BARANG", "TANGGAL_PERMINTAAN_IJIN", "NIP", "PEMOHON", "ISI_PERMOHONAN", "STATUS"};
            TableGenerator.generateTable(jTableIjinPengeluaran, ControllerIjinPengeluaran.searchIjinPengeluaran(""), listField);

        } catch (SQLException ex) {
            Logger.getLogger(Suplier.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    private void setActiveInput(boolean status) {
        jButtonTambah.setEnabled(!status);
        jButtonUbah.setEnabled(!status);
        jButtonHapus.setEnabled(!status);
        jTextFieldTanggalPermintaanIjin.setEnabled(status);
        jTextFieldPemohon.setEnabled(status);
        jTextFieldIsiPermohonan.setEnabled(status);
        jTextFieldStatus.setEnabled(status);
        jButtonSimpan.setEnabled(status);
        jButtonBatal.setEnabled(status);
    }

    private void kosongkanInput() {
        jTextFieldTanggalPermintaanIjin.setText("");
        jTextFieldPemohon.setText("");
        jTextFieldIsiPermohonan.setText("");
        jTextFieldStatus.setText("");
        pilihPegawai = true;
    }

    private void tampilkanDataTabelKeInput() {
        jTextFieldTanggalPermintaanIjin.setText((String) jTableIjinPengeluaran.getValueAt(selectedIndex, 1));
        jTextFieldPemohon.setText((String) jTableIjinPengeluaran.getValueAt(selectedIndex, 2));
        jTextFieldIsiPermohonan.setText((String) jTableIjinPengeluaran.getValueAt(selectedIndex, 4));
        jTextFieldStatus.setText((String) jTableIjinPengeluaran.getValueAt(selectedIndex, 5));
    }

    private void jButtonHapusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonHapusActionPerformed
        // TODO add your handling code here:
        int a = JOptionPane.showConfirmDialog(this, "Apakah anda yakin akan menghapus data ?");
        if (a == 0) {
            ControllerIjinPengeluaran.deleteFromIjinPengeluaran((String) jTableIjinPengeluaran.getValueAt(selectedIndex, 0));
            refreshTabel();
        }
    }//GEN-LAST:event_jButtonHapusActionPerformed

    private void jTextFieldPemohonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldPemohonActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jTextFieldPemohonActionPerformed

    private void jButtonUbahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonUbahActionPerformed
        // TODO add your handling code here:
        tambahIjinPengeluaran = false;
        setActiveInput(true);
    }//GEN-LAST:event_jButtonUbahActionPerformed

    private void jButtonTambahActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonTambahActionPerformed
        // TODO add your handling code here:
        kosongkanInput();
        tambahIjinPengeluaran = true;
        setActiveInput(true);
    }//GEN-LAST:event_jButtonTambahActionPerformed

    private void jTextFieldPencarianActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldPencarianActionPerformed
        // TODO add your handling code here:
        try {
            // TODO add your handling code here:
            String[] listField = {"NO_IJIN_PENGELUARAN_BARANG", "TANGGAL_PERMINTAAN_IJIN", "NIP", "PEMOHON", "ISI_PERMOHONAN", "STATUS"};
            String filter = "";
            if (!jTextFieldPencarian.getText().equals("")) {
                filter = "where " + jComboBoxJenisPencarian.getItemAt(jComboBoxJenisPencarian.getSelectedIndex()).toString().replaceAll(" ", "_") + " like'%" + jTextFieldPencarian.getText() + "%'";
            }
            TableGenerator.generateTable(jTableIjinPengeluaran, ControllerIjinPengeluaran.searchIjinPengeluaran(filter), listField);
        } catch (SQLException ex) {
            Logger.getLogger(Suplier.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_jTextFieldPencarianActionPerformed

    private void jButtonSimpanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonSimpanActionPerformed
        // TODO add your handling code here:
        String tanggal = jTextFieldTanggalPermintaanIjin.getText();
        tanggal = tanggal.substring(6) + "-" + tanggal.substring(3, 5) + "-" + tanggal.substring(0, 2);
        jTextFieldTanggalPermintaanIjin.setText(tanggal);
        if (tambahIjinPengeluaran) {
            if (ControllerIjinPengeluaran.insertIntoIjinPengeluaran(jTextFieldTanggalPermintaanIjin.getText(), jTextFieldPemohon.getText(), jTextFieldIsiPermohonan.getText(), jTextFieldStatus.getText())) {
                JOptionPane.showMessageDialog(this, "Data Berhasil dimasukkan");
                refreshTabel();
            }
        } else {
            if (ControllerIjinPengeluaran.updateIjinPengeluaran((String) jTableIjinPengeluaran.getValueAt(selectedIndex, 0), jTextFieldTanggalPermintaanIjin.getText(), jTextFieldPemohon.getText(), jTextFieldIsiPermohonan.getText(), jTextFieldStatus.getText())) {
                JOptionPane.showMessageDialog(this, "Data Berhasil diubah");
                refreshTabel();
            }
        }
        setActiveInput(false);
    }//GEN-LAST:event_jButtonSimpanActionPerformed

    private void jButtonBatalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBatalActionPerformed
        // TODO add your handling code here:
        kosongkanInput();
        tambahIjinPengeluaran = true;
        setActiveInput(false);
    }//GEN-LAST:event_jButtonBatalActionPerformed

    private void jTableIjinPengeluaranMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTableIjinPengeluaranMouseClicked
        selectedIndex = jTableIjinPengeluaran.getSelectedRow();
        tampilkanDataTabelKeInput();
        tambahIjinPengeluaran = false;
    }//GEN-LAST:event_jTableIjinPengeluaranMouseClicked

    private void jButton_pilhNoIjinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton_pilhNoIjinActionPerformed
        if (jTableIjinPengeluaran.getValueAt(selectedIndex, 5).equals("approve")) {
            ViewUtama.noIjinPengeluaran = (String) jTableIjinPengeluaran.getValueAt(selectedIndex, 0);
            ViewUtama.formIjinPengeluaran.setVisible(false);
        }
}//GEN-LAST:event_jButton_pilhNoIjinActionPerformed

    private void jTextFieldPemohonFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldPemohonFocusGained
        if (pilihPegawai) {
            JOptionPane.showMessageDialog(this, "Silahkan memilih pegawai");
            ViewUtama.formPegawai = new FormPegawai();
            ViewUtama.formPegawai.setVisible(true);
            pilihPegawai = false;
        } else {
            if (ViewUtama.nip != null) {
                jTextFieldPemohon.setText(ViewUtama.nip);

            }
        }
    }//GEN-LAST:event_jTextFieldPemohonFocusGained

    private void jTextFieldPencarianFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jTextFieldPencarianFocusGained
        jTextFieldPencarian.setText("");
    }//GEN-LAST:event_jTextFieldPencarianFocusGained

    private void formFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_formFocusGained
    }//GEN-LAST:event_formFocusGained

    private void jTextFieldTanggalPermintaanIjinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldTanggalPermintaanIjinActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldTanggalPermintaanIjinActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonBatal;
    private javax.swing.JButton jButtonHapus;
    private javax.swing.JButton jButtonSimpan;
    private javax.swing.JButton jButtonTambah;
    private javax.swing.JButton jButtonUbah;
    private javax.swing.JButton jButton_pilhNoIjin;
    private javax.swing.JComboBox jComboBoxJenisPencarian;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTableIjinPengeluaran;
    private javax.swing.JTextField jTextFieldIsiPermohonan;
    private javax.swing.JTextField jTextFieldPemohon;
    private javax.swing.JTextField jTextFieldPencarian;
    private javax.swing.JTextField jTextFieldStatus;
    private javax.swing.JTextField jTextFieldTanggalPermintaanIjin;
    // End of variables declaration//GEN-END:variables
    // End of variables declaration
}
